/**
 * Created by Administrator on 2019/7/1.
 */
//选项卡
var one = document.querySelectorAll(".bxsb ul li");
var two = document.querySelectorAll(".bxsb > div");

for(var i = 0; i < one.length; i++){
    one[i].index = i;
    one[i].addEventListener('mousemove',function(){
        for(var k = 0; k < one.length; k++){
            one[k].classList.remove("active");
            two[k].classList.remove("activa");
        }
        this.classList.add("active");
        two[this.index].classList.add("activa");
    })
}